<?php get_header('page');?>
<style>
.page-testimonials ul li .box-img img {
    clear: both;
    float: left;
    height: 107px !important;
    margin-left: -3px !important;
    margin-top: 4px !important;
    width: 143px !important;
}
.content-box-1
		{
			margin-top:15px;	
		}
</style>
<body>
<div id="topbg"></div>
<div id="container">
	<div id="header">
    	<?php include TEMPLATEPATH.'/controllers/banner/controller-banner.php';?>
        <?php require_once TEMPLATEPATH.'/views/menu/view-menu.php';?>
    </div>
    
    <div id="mid">
    	<div id="box-content">
            <!-- begin breadcrumb -->
            <?php require_once TEMPLATEPATH.'/views/breadcrumb/view-breadcrumb.php';?>
            <!-- end #breadcrumb -->
            <!-- Page contetn -->
                <div id="content" class="page-testimonials">
            	<div class="content-box-1">
                    <h1 class="label-content-box-1-top">TESTIMONIALS</h1>
                    <a href="<?php bloginfo('home');?>/send-testimonial" class="sendtestimonials hide-text">Send Testimonials</a>                    
                    <ul>
                    	<?php
                    	$num_post 	= 12; 
                    	$post_type	= 'testimonial';
                    	$orderby	= 'date'; 
                    	$order		= 'DESC'; 
                    	$meta_key	= $wpdb->prefix.'display'; 
                    	$meta_value	= 'display';
                    	
                    	$args = db_query_all_post_in_post_type($num_post, $post_type, $orderby, $order, $meta_key, $meta_value);
                    	query_posts($args);
                    	require_once TEMPLATEPATH.'/views/testimonial/loop-testimonials.php'; 
                    	?>                       
                    </ul>
                    <div class="paging">
                       <?php bt_paginate();?>
                    </div>
                </div>
                <div class="clear"></div>
                <?php //include TEMPLATEPATH.'/views/testimonial/view-home-testimonial.php';?>
            </div> 
            <!-- End Page contetn -->
        </div>
        
        <?php get_sidebar();?>
    </div>
    
    <?php //include TEMPLATEPATH.'/views/testimonial/view-home-testimonial.php';?>
    <?php get_footer('page');?>
